<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #app {
            width: 300px;
            background-color: #00bfff;
            margin: 0 auto;
            height: 500px;
            color: #fff;
        }

        h1 {
            text-align: center;
        }

        .info {
            margin-top: 20px;
            margin-left: 20px;
        }

        p {
            margin-bottom: 15px;
        }
    </style>
</head>

<body>
    <div id="app">
        <h1>个人简历</h1>

        <div class="info">
            <p>姓名：{{ username }}</p>
            <p>年龄：{{ age }}</p>
            <p>电话：{{ tel }}</p>
            <p>地址：{{ adderss }}</p>
            <p>工作年限：{{ workage }}</p>
        </div>
    </div>

    <!-- 引入vue -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        const { createApp } = Vue;
        // 创建应用实例
        const app = createApp({
            setup() {
                const username = "小莱";
                const age = 18;
                const tel = 13512345678;
                const adderss = "北京市海淀区西二旗";
                const workage = 10;

                return {
                    username,
                    age,
                    tel,
                    adderss,
                    workage,

                }
            }
        })
        // 挂载到dom元素上
        app.mount('#app')
    </script>
</body>

</html>